package com.example.text.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 规则表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Data
@TableName(value = "admin_role")
public class AdminRole {
    private static final long serialVersionUID = 1L;

    @TableId(value="id",type = IdType.AUTO)
    private int id;

    /**
     * Role name.
     */
    private String name;

    /**
     * Role name in Chinese.
     */
    private String name_zh;

    /**
     * Role status.
     */
    private boolean enabled;


    /**
     * Transient property for storing permissions owned by current role.
     */
    @TableField(exist = false)
    private List<AdminPermission> perms;

    /**
     * Transient property for storing menus owned by current role.
     */
    @TableField(exist = false)
    private List<AdminMenu> menus;

}
